import datetime


class DateUtil(object):
    @classmethod
    async def get_recent_day_10(cls):
        today = datetime.date.today()
        # 十天的datetime/格式化后的str
        ten_date, ten_date_str = [], []
        for i in range(10):
            last = today - datetime.timedelta(days=9 - i)
            last_str = last.strftime('%m/%d')
            ten_date.append(last)
            ten_date_str.append(last_str)
        return ten_date, ten_date_str
